import math
def fibs(num):
  "求斐波拉切数列,num为数列项数"#文档字符串
  result = [0,1]
  for i in range(num-2):#0 1已经确定
    result.append(result[-1]+result[-2])#倒数第一和倒数第二的和加入
  return result
print (fibs.__doc__)#打印文档字符串1
help(fibs)#打印文档字符串2
help(math.sqrt)
print(fibs(6))


